<?php
class AddFrag extends Action {
	/* (non-PHPdoc)
	 * @see Action::execute()
	 */
	public function execute($params) {
		check_login ( ADMIN_LOGIN_PAGE );
		$data = sess_del ( 'frag_form_data' );
		$data ['page_tip_info'] = sess_del ( 'page_tip_info' );
		$data ['navi_active'] = '<i class="icon-plus"></i>代码片断';
		return new SmartyView ( $data, 'fragment/FragmentForm' );
	}
}